from django.urls import path, re_path, include

from user import views

urlpatterns = [
    path('user_show/', views.UserShowView.as_view(actions={'get': 'get_users'})),
    path('user_logon/', views.UserLogonView.as_view(actions={'post': 'user_logon'})),
    path('guest_info/', views.GuestInfoView.as_view(actions={'post': 'guest_info'})),
    path('code_img_show/', views.CodeImgShowView.as_view(actions={'get': 'get_code_img'})),
    path('user_login/', views.UserLoginView.as_view(actions={'post': 'user_login'})),
    path('get_user_info/', views.GetUserInfoView.as_view(actions={'post': 'get_user_info'})),
    path('upload_avatar/', views.UploadAvatarView.as_view(actions={'post': 'upload_avatar'})),
    path('create_track/', views.CreateTrackView.as_view(actions={'post': 'create_track'})),
    path('update_nickname/', views.UpdateNicknameView.as_view(actions={'post': 'update_nickname'})),
    path('track_show/', views.TrackShowView.as_view(actions={'get': 'get_tracks'})),
    path('del_coupon/', views.DelCouponView.as_view(actions={'post': 'del_coupon'})),
    path('create_coupon/', views.MixinCouponView.as_view(actions={'post': 'create_coupon'})),
    path('resolve_coupon/', views.ResolveCouponView.as_view(actions={'post': 'resolve_coupon'})),
]
